# -*- coding: utf-8 -*-
from calc_setting import * 

def run_BASDA(path_file):
	BASDA_bin = os.path.join(BASDA_dir, 'bin', 'BASDA')
	result = subprocess.run([BASDA_bin, path_file], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
	return(result)


if __name__ == '__main__':

	file_general_name = "path_{}.dat"
	file_name_list=Generate_General_NameList(file_general_name,BASDA_target_control_folder,param_length)
	Parallel_Running(run_BASDA, file_name_list,BASDA_parallel_output_folder+"BASDA_{}")
